package com.tlibrary.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author：wcc
 * @Description：
 * @Date：Create in: 2019/4/1--9:46
 */
@Component
@Mapper
public interface SubquestionsMapper {

    void insertFillin(HashMap map);

    List<Map<String,String>> getAllFandTF(HashMap hashMap);
    @Delete("delete  from subquestions where ID = #{id,jdbcType=VARCHAR}")
    void deletebyid(String id);

    @Update("update  subquestions  set content=#{title,jdbcType=VARCHAR} , ans=#{ans,jdbcType=VARCHAR},difficulty=#{nd,jdbcType=VARCHAR} where id=#{ID,jdbcType=VARCHAR} ")
    void updatesub(HashMap hashMap);
}
